package com.springboot.java.design.abstrictfactory;


/**
 * @Author: TongRui乀
 * @Date: 2019/3/5 14:25
 * @description：
 */
public class AmdComputerFactory implements com.springboot.java.design.abstrictfactory.ComputerFactory {
    @Override
    public com.springboot.java.design.model.Motherboard makeMotherBoard() {

        com.springboot.java.design.model.AMDMatorboard amdMatorboard = new com.springboot.java.design.model.AMDMatorboard();

        amdMatorboard.setName("AMD");

        return amdMatorboard;
    }

    @Override
    public com.springboot.java.design.model.CPU makeCpu() {

        com.springboot.java.design.model.AMDCpu amdCpu = new com.springboot.java.design.model.AMDCpu();

        amdCpu.setName("AMD");

        return amdCpu;
    }
}
